package com.inspur.cloud.configuration;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "config")
@Data
public class AmbariConfig {
    @Value("${ambari_server_hostname:manager.node}")
    private String ambariHostName;

    @Value("${ambari_uri:https://manager.node:8080}")
    private String ambariUri;

    @Value("${ambari_server_user:admin}")
    private String ambariServerUser;

    @Value("${ambari_server_pass:240be518fabd2724ddb6f04eeb1da5967448d7e831c08c8fa822809f74c720a9}")
    private String ambariServerPass;

    @Value("${ambari_server_login_user:root}")
    private String ambariServerLoginUser;

    @Value("${ambari_server_login_pass:lc!@#456}")
    private String ambariServerLoginPass;

    @Value("${ranger_server_user:admin}")
    private String rangerServerUser;

    @Value("${ranger_server_pass:admin123}")
    private String rangerServerPass;

    @Value("${ambari_server_use_ssl:true}")
    private boolean ambariServerUseSsl;

    @Value("${java_home:/usr/jdk64/java}")
    private String javaHome;

    @Value("${ssh_port:22}")
    private String sshPort;

    @Value("${user_keytab_path:/insight/keytabs}")
    private String userKeytabPath;

    @Value("${dataspace_principal:dataspace/insight}")
    private String dataspacePrincipal;

    @Value("${dataspace_keytab_path:/etc/security/keytabs/dataspace.keytab}")
    private String dataspaceKeytab;

    @Value("${dataspace_conf_dir:/usr/hdp/3.0.1.0-187/dataspace/config}")
    private String dataspaceConfigDir;

    @Value("${dataspace_jaas_file_name:dataspace_jaas.conf}")
    private String dataspaceJaasFileName;

    @Value("${security_authentication:true}")
    private boolean kerberosSecurityAuthentication;

    @Value("${hdfs_user_dir_mode:true}")
    private boolean setHdfsUserDirMode;

    @Value("${reserve_linux_home_dir:false}")
    private boolean reserveLinuxHomeDir;

}